if(!dojo._hasResource["market.widgets.CommonWidget"]){
dojo._hasResource["market.widgets.CommonWidget"] = true;
dojo.provide("market.widgets.CommonWidget");
dojo.require("dijit._Widget");
dojo.declare("market.widgets.CommonWidget",dijit._Widget,
{
contentId:"",widgetId:"",
constructor:function(args){
   this.contentId = args.contentId;
   this.widgetId = args.id;
},
createForm:function (widgetId,contentId,ajaxUrl,elementsDataSource,handleEvents,postCreated,hasCache){
   var dataform = {
      ajaxCallUrl: ajaxUrl, 
      ajaxCallType:'callXhrGetJson',
      contentId: contentId,
      widgetId: widgetId,
      elementsDataSource: elementsDataSource,
      handleEvents:handleEvents,
      postCreatedFunc:postCreated,
      hasCache: hasCache
   };
   var genericForm = SYSTEMWIDGET.genericFormWidget(dataform);
   genericForm.createForm();
   return genericForm;
},
createFormFromDataSource:function(widgetId,contentId,dataSource,handleEvents,postCreated){
   var dataform = {
      contentId: contentId,
      widgetId: widgetId,
      handleEvents:handleEvents,
      postCreatedFunc:postCreated
   };
   var genericForm = SYSTEMWIDGET.genericFormWidget(dataform);
   genericForm.createFormFormDataSource(dataSource);
   return genericForm;
}
});}